package cn.kzgg.ymcc.feign.pullBlack;

import cn.kzgg.ymcc.domain.User;
import cn.kzgg.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-user",fallbackFactory = BlackUserFeignClientFallbackFactory.class)
public interface BlackUserFeignClient {

    @RequestMapping(value = "/user/goBlack/{id}",method = RequestMethod.GET)
    User goBlack(@PathVariable("id")Long id);


}
